package com.ubxtech.cloud.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Victor.Xiao
 * @since 2023-11-23 20:39
 **/
@Data
@ConfigurationProperties(prefix = CloudProperties.PREFIX)
public class CloudProperties {
    public static final String PREFIX = "ubxtech.cloud";

    /**
     * 日志等级
     */
    private String logLevel;

    /**
     * 是否用灰度版本逻辑
     */
    private String grayFlag="1";

    /**
     * 消息服务中心serviceName
     */
    private String msgServiceName="ubt-cml-cloud-msg";
    /**
     * 指定推送BaseUrl
     */
    private String msgServiceBaseUrl="";
    /**
     * 对应推送的url
    */
    private String msgPushServiceUrl="/msg/pushMsg";
    /**
     * 推送websocket消息
     */
    private String msgGetServiceIdUrl="/msg/getServiceId";
    /**
     * 对应推送path的url
     */
    private String pushPathUrl="/path/reportPath";

//    /**
//     * 对应消息回调的url
//     */
//    private List<MsgCallbackParameter> msgCallbackService = new ArrayList<>();
//
//
//    @Setter
//    @Getter
//    public static class MsgCallbackParameter {
//
//        private String msgCallbackServiceName;
//        private String msgCallbackUrl;
//    }

}
